
        <div class="wrap">
            <div class="container">
                <div class="row">
                    <div class="col-xs-12 col-md-9 main">
                        <ul class="nav nav-tabs nav-tabs-zen mb10 mt30">


                            <li class="<?php if(ACTION_NAME=='index'){
                                echo 'active';
                                } ?>" >
                                <a href="{:U('index/index/index')}">
                                    最新的
                                    
                                </a>
                            </li >
                            <li class="<?php if(ACTION_NAME=='hot'){
                                echo 'active';
                                } ?>" >
                                <a href="{:U('index/index/hot')}">
                                    热门的
                                </a>
                            </li >
                            <li class="<?php if(ACTION_NAME=='unanswer'){
                                echo 'active';
                                } ?>">
                                <a href="{:U('index/index/unanswer')}">
                                    未回答的
                                </a>
                            </li>
                        </ul>
                        <div class="stream-list question-stream">
                            <?php foreach ($questions as $v) { ?>
                                <section class="stream-list__item">
                                    <div class="qa-rank">
                                        <div class="votes hidden-xs">
                                            <?php echo $v['vote_num'] ?>
                                            <small>
                                                投票
                                            </small>
                                        </div>
                                        <div class="answers <?php if($v['answer_num']!=0){
                                            echo 'answered';
                                            } ?>">
                                            <?php echo $v['answer_num'] ?>
                                            <small>
                                                回答
                                            </small>
                                        </div>
                                        <div class="views hidden-xs">
                                            <?php echo $v['view'] ?>
                                            <small>
                                                浏览
                                            </small>
                                        </div>
                                    </div>
                                    <div class="summary">
                                        <ul class="author list-inline">
                                            <li>
                                                <a href="https://segmentfault.com/u/feedmo">
                                                    <?php echo $v['username'] ?>
                                                </a>
                                                <span class="split">
                                                </span>
                                                <a href="" class="askDate"
                                                data-created="1467102527">
                                                    <?php echo $v['create_time'] ?>提问
                                                </a>
                                            </li>
                                        </ul>
                                        <h2 class="title">
                                            <a href="{:U('/ask/'.$v['id'])}">
                                               <?php echo $v['title'] ?>
                                            </a>
                                        </h2>
                                        <ul class="taglist--inline ib">
                                            <?php foreach ($v['category'] as $value ) { ?>

                                                <li class="tagPopup">
                                                    <a class="tag tag-sm" href="{:U('index/category/index',array('cid'=>$value['cid']))}" data-toggle="popover"
                                                    data-original-title="java" data-id="1040000000089449">
                                                        <?php echo $value['cname'] ?>
                                                    </a>
                                                </li>
                                                
                                           <?php } ?>
                                            
                                        </ul>
                                    </div>
                                </section>
                            <?php } ?>
                            
                        </div>
                        <style type="text/css">
                            .num{
                                position: relative;
                                float: left;
                                padding: 6px 12px;
                                line-height: 1.5;
                                text-decoration: none;
                                color: #009a61;
                                background-color: #fff;
                                border: 1px solid #ddd;
                                margin-left: -1px;
                            }
                            .current{
                                position: relative;
                                float: left;
                                padding: 6px 12px;
                                line-height: 1.5;
                                text-decoration: none;
                                color: #009a61;
                                background-color: #fff;
                                border: 1px solid #ddd;
                                margin-left: -1px;
                                z-index: 2;
                                color: #fff;
                                background-color: #009a61;
                                border-color: #009a61;
                                cursor: default;
                            }

                            .prev{
                                position: relative;
                                float: left;
                                padding: 6px 12px;
                                line-height: 1.5;
                                text-decoration: none;
                                color: #009a61;
                                background-color: #fff;
                                border: 1px solid #ddd;
                                margin-left: -1px;
                            }

                            .next{
                                position: relative;
                                float: left;
                                padding: 6px 12px;
                                line-height: 1.5;
                                text-decoration: none;
                                color: #009a61;
                                background-color: #fff;
                                border: 1px solid #ddd;
                                margin-left: -1px;
                            }




                        </style>
                        <!-- /.stream-list -->
                        <div class="text-center">
                            <ul class="pager">
                                <?php echo $show ?>
                            </ul>
                        </div>
                    </div>
                    <!-- /.main -->
                    <div class="col-xs-12 col-md-3 side mt30">
                        <div class="side-ask alert alert-warning">
                            <p>
                                今天，你编程遇到了什么问题呢？
                            </p>
                            <a href="https://segmentfault.com/ask" class="mt10 btn btn-primary btn-block">
                                提问
                            </a>
                            <div class="mt10 side-system-notice">
                                <i class="fa fa-bullhorn pull-left">
                                </i>
                                <a class="side-system-notice--title" href="https://segmentfault.com/a/1190000005760428#notify">
                                    白帽众测 SegmentFault，现金奖励等你拿！
                                </a>
                            </div>
                        </div>
                        <div class="widget-messages">
                            <a id="draftCount" class="widget-messages__item" href="https://segmentfault.com/user/draft">
                                我的草稿
                                <span class="badge">
                                    1
                                </span>
                            </a>
                            <a class="widget-messages__item" href="https://segmentfault.com/user/bookmarks">
                                我的收藏
                            </a>
                            <a class="widget-messages__item" target="_blank" href="https://segmentfault.com/u/xuebingsiabin/questions/following">
                                我关注的
                            </a>
                            <a id="inviteCount" class="widget-messages__item" href="https://segmentfault.com/user/invited">
                                邀请我回答的
                            </a>
                            <a class="widget-messages__item" href="https://segmentfault.com/user/invitation">
                                邀请朋友加入
                            </a>
                        </div>
                        <div class="sfad-sidebar">
                            <div class="sfad-item">
                                <ins>
                                    <a href="https://sponsor.segmentfault.com/ck.php?oaparams=2__bannerid=36__zoneid=3__cb=2e696b2026__oadest=https%3A%2F%2Fsegmentfault.com%2Fe%2F1160000005059284"
                                    target="_blank">
                                        <img src="./index_files/54ebe900d7d7e43e152d5970745ce774.png" width="255"
                                        height="65" alt="" title="" border="0">
                                    </a>
                                    <div id="beacon_2e696b2026" style="position: absolute; left: 0px; top: 0px; visibility: hidden;">
                                        <img src="./index_files/lg.php" width="0" height="0" alt="" style="width: 0px; height: 0px;">
                                    </div>
                                </ins>
                                <button class="close" type="button" aria-hidden="true">
                                    ×
                                </button>
                            </div>
                            <div class="sfad-item">
                                <ins>
                                    <a href="https://sponsor.segmentfault.com/ck.php?oaparams=2__bannerid=49__zoneid=4__cb=300472e60c__oadest=https%3A%2F%2Fsegmentfault.com%2Fa%2F1190000005760428"
                                    target="_blank">
                                        <img src="./index_files/e6d25982e9504e2472f290b407f33aca.png" width="255"
                                        height="65" alt="" title="" border="0">
                                    </a>
                                    <div id="beacon_300472e60c" style="position: absolute; left: 0px; top: 0px; visibility: hidden;">
                                        <img src="./index_files/lg(1).php" width="0" height="0" alt="" style="width: 0px; height: 0px;">
                                    </div>
                                </ins>
                                <button class="close" type="button" aria-hidden="true">
                                    ×
                                </button>
                            </div>
                        </div>
                        <div data-type="widget" data-api="/api/user/ranking">
                            <script type="text/template">
                                < div class = "widget-box" > <h2 class = "widget-box__title" > 排行榜 < span class = "userstab text-muted pull-right " > <a href = "javascript:void(0);"data - tab = "Daily"class = "active" > 今天 < /a>
                        &middot;
                        <a href="javascript:void(0);" data-tab="Weekly">本周</a > &middot; < a href = "/users" > 更多 < /a>
                        </span > </h2>
                <ol id="usersDaily" class="widget-top10">
                    <% _.each(daily,function(d){ %>
                    <li class="text-muted">
                        <img class="avatar-24" src="<%- d.avatarUrl %>"/ > <a href = "<%- d.url %>"class = "ellipsis" > <%=d.name % ></a>
                        <span class="text-muted pull-right">+<%- d.incr %></span > </li>
                    <% }) %>
                </ol > <ol id = "usersWeekly"class = "widget-top10  hidden" > <%_.each(weekly,
                                function(d) { % ><li class = "text-muted" > <img class = "avatar-24"src = "<%- d.avatarUrl %>" / ><a href = "<%- d.url %>"class = "ellipsis" > <%=d.name % ></a>
                        <span class="text-muted pull-right">+<%- d.incr %></span > </li>
                    <% }) %>
                </ol > </div>

        /
                            </script>
                            <div class="widget-box">
                                <h2 class="widget-box__title">
                                    排行榜
                                    <span class="userstab text-muted pull-right ">
                                        <a href="javascript:void(0);" data-tab="Daily" class="active">
                                            今天
                                        </a>
                                        ·
                                        <a href="javascript:void(0);" data-tab="Weekly">
                                            本周
                                        </a>
                                        ·
                                        <a href="https://segmentfault.com/users">
                                            更多
                                        </a>
                                    </span>
                                </h2>
                                <ol id="usersDaily" class="widget-top10">
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/1202606141-1030000000585904_big64">
                                        <a href="https://segmentfault.com/u/leftstick" class="ellipsis">
                                            leftstick
                                        </a>
                                        <span class="text-muted pull-right">
                                            +222
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/2126928047-549a0fc27ae91_big64">
                                        <a href="https://segmentfault.com/u/bf" class="ellipsis">
                                            bf
                                        </a>
                                        <span class="text-muted pull-right">
                                            +218
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/3064496925-5668f2e9c4f25_big64">
                                        <a href="https://segmentfault.com/u/yangxiangming" class="ellipsis">
                                            yangxiangming
                                        </a>
                                        <span class="text-muted pull-right">
                                            +174
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/289632912-56dcdd3095831_big64">
                                        <a href="https://segmentfault.com/u/incnick" class="ellipsis">
                                            incNick
                                        </a>
                                        <span class="text-muted pull-right">
                                            +121
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/2460648379-5561c0804067a_big64">
                                        <a href="https://segmentfault.com/u/justgo" class="ellipsis">
                                            JustGo
                                        </a>
                                        <span class="text-muted pull-right">
                                            +109
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/2848362203-571a4fbfdadd1_big64">
                                        <a href="https://segmentfault.com/u/gzchen" class="ellipsis">
                                            gzchen
                                        </a>
                                        <span class="text-muted pull-right">
                                            +91
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/3594802223-57450ada6e163_big64">
                                        <a href="https://segmentfault.com/u/guangpunba" class="ellipsis">
                                            guangpunba
                                        </a>
                                        <span class="text-muted pull-right">
                                            +90
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/2265993573-552e4e5ccabfc_big64">
                                        <a href="https://segmentfault.com/u/mycharles" class="ellipsis">
                                            查尔斯
                                        </a>
                                        <span class="text-muted pull-right">
                                            +89
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/1104316325-57722273d1168_big64">
                                        <a href="https://segmentfault.com/u/liewo" class="ellipsis">
                                            烈日神巫
                                        </a>
                                        <span class="text-muted pull-right">
                                            +81
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/3870447111-5673aedad6338_big64">
                                        <a href="https://segmentfault.com/u/justjavac" class="ellipsis">
                                            justjavac
                                        </a>
                                        <span class="text-muted pull-right">
                                            +77
                                        </span>
                                    </li>
                                </ol>
                                <ol id="usersWeekly" class="widget-top10  hidden">
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/1202606141-1030000000585904_big64">
                                        <a href="https://segmentfault.com/u/leftstick" class="ellipsis">
                                            leftstick
                                        </a>
                                        <span class="text-muted pull-right">
                                            +457
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/2126928047-549a0fc27ae91_big64">
                                        <a href="https://segmentfault.com/u/bf" class="ellipsis">
                                            bf
                                        </a>
                                        <span class="text-muted pull-right">
                                            +317
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/user-64.png">
                                        <a href="https://segmentfault.com/u/exudong" class="ellipsis">
                                            exudong
                                        </a>
                                        <span class="text-muted pull-right">
                                            +214
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/3064496925-5668f2e9c4f25_big64">
                                        <a href="https://segmentfault.com/u/yangxiangming" class="ellipsis">
                                            yangxiangming
                                        </a>
                                        <span class="text-muted pull-right">
                                            +189
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/14378873-576df7a13e2c5_big64">
                                        <a href="https://segmentfault.com/u/tomoe" class="ellipsis">
                                            Tomoe
                                        </a>
                                        <span class="text-muted pull-right">
                                            +181
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/1516451243-5722ebd3df5a9_big64">
                                        <a href="https://segmentfault.com/u/prolifes" class="ellipsis">
                                            prolifes
                                        </a>
                                        <span class="text-muted pull-right">
                                            +181
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/289632912-56dcdd3095831_big64">
                                        <a href="https://segmentfault.com/u/incnick" class="ellipsis">
                                            incNick
                                        </a>
                                        <span class="text-muted pull-right">
                                            +168
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/468236073-1030000000403918_big64">
                                        <a href="https://segmentfault.com/u/shuhai" class="ellipsis">
                                            shuhai
                                        </a>
                                        <span class="text-muted pull-right">
                                            +167
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/2848362203-571a4fbfdadd1_big64">
                                        <a href="https://segmentfault.com/u/gzchen" class="ellipsis">
                                            gzchen
                                        </a>
                                        <span class="text-muted pull-right">
                                            +132
                                        </span>
                                    </li>
                                    <li class="text-muted">
                                        <img class="avatar-24" src="./index_files/1296549628-56d504e391c9d_big64">
                                        <a href="https://segmentfault.com/u/shanejs" class="ellipsis">
                                            流星狂飙
                                        </a>
                                        <span class="text-muted pull-right">
                                            +130
                                        </span>
                                    </li>
                                </ol>
                            </div>
                        </div>
                        <div data-type="widget" data-api="/api/bookmarkArchive/hots" data-api-overwrite="/api/bookmarkArchive/hots">
                            <script type="text/template">
                                < div class = "widget-box widget-box--bookmark " > <h4 class = "widget-box__title" > 热门收藏夹 < a id = "widgetBookmarkRefresh"class = "userstab pull-right"href = "javascript:;" > 换一组 < /a></h4 > <ul class = "widget-links list-unstyled media" > <%_.each(data,
                                function(d) { % ><li class = "widget-links__item" > <img class = "pull-left pattern pattern-<%= d.id%19 %> mr10"src = "https://sf-static.b0.upaiyun.com/v-576b52d9/global/img/pattern/<%= d.id%10 ? d.id%10 : 10 %>.svg"width = "32" > <div class = "media-body" > <a target = "_blank"class = "ellipsis mr0"href = "<%- d.url %>" > <%=d.name % ></a>
                            <p class="mb0">
                                <span><%- d.num %></span > 个条目 < span class = "division" > |</span> <span><%- d.followers %></span > 人关注 < /p>
                        </div > </li>
                    <% }) %>
                </ul > </div>
        /
                            </script>
                            <div class="widget-box widget-box--bookmark ">
                                <h4 class="widget-box__title">
                                    热门收藏夹
                                    <a id="widgetBookmarkRefresh" class="userstab pull-right" href="javascript:;">
                                        换一组
                                    </a>
                                </h4>
                                <ul class="widget-links list-unstyled media">
                                    <li class="widget-links__item">
                                        <img class="pull-left pattern pattern-18 mr10" src="./index_files/9.svg"
                                        width="32">
                                        <div class="media-body">
                                            <a target="_blank" class="ellipsis mr0" href="https://segmentfault.com/bookmark/1230000004250429">
                                                2015 优秀文章 - 前端
                                            </a>
                                            <p class="mb0">
                                                <span>
                                                    97
                                                </span>
                                                个条目
                                                <span class="division">
                                                    |
                                                </span>
                                                <span>
                                                    75
                                                </span>
                                                人关注
                                            </p>
                                        </div>
                                    </li>
                                    <li class="widget-links__item">
                                        <img class="pull-left pattern pattern-8 mr10" src="./index_files/2.svg"
                                        width="32">
                                        <div class="media-body">
                                            <a target="_blank" class="ellipsis mr0" href="https://segmentfault.com/bookmark/1230000004250362">
                                                2015 优秀文章 - PHP
                                            </a>
                                            <p class="mb0">
                                                <span>
                                                    48
                                                </span>
                                                个条目
                                                <span class="division">
                                                    |
                                                </span>
                                                <span>
                                                    60
                                                </span>
                                                人关注
                                            </p>
                                        </div>
                                    </li>
                                    <li class="widget-links__item">
                                        <img class="pull-left pattern pattern-3 mr10" src="./index_files/6.svg"
                                        width="32">
                                        <div class="media-body">
                                            <a target="_blank" class="ellipsis mr0" href="https://segmentfault.com/bookmark/1230000004250566">
                                                2015 优秀文章 - Git
                                            </a>
                                            <p class="mb0">
                                                <span>
                                                    45
                                                </span>
                                                个条目
                                                <span class="division">
                                                    |
                                                </span>
                                                <span>
                                                    28
                                                </span>
                                                人关注
                                            </p>
                                        </div>
                                    </li>
                                    <li class="widget-links__item">
                                        <img class="pull-left pattern pattern-6 mr10" src="./index_files/5.svg"
                                        width="32">
                                        <div class="media-body">
                                            <a target="_blank" class="ellipsis mr0" href="https://segmentfault.com/bookmark/1230000002226575">
                                                详解 JS 系列
                                            </a>
                                            <p class="mb0">
                                                <span>
                                                    14
                                                </span>
                                                个条目
                                                <span class="division">
                                                    |
                                                </span>
                                                <span>
                                                    185
                                                </span>
                                                人关注
                                            </p>
                                        </div>
                                    </li>
                                    <li class="widget-links__item">
                                        <img class="pull-left pattern pattern-14 mr10" src="./index_files/4.svg"
                                        width="32">
                                        <div class="media-body">
                                            <a target="_blank" class="ellipsis mr0" href="https://segmentfault.com/bookmark/1230000002456274">
                                                留给编程迷茫时的自己
                                            </a>
                                            <p class="mb0">
                                                <span>
                                                    12
                                                </span>
                                                个条目
                                                <span class="division">
                                                    |
                                                </span>
                                                <span>
                                                    60
                                                </span>
                                                人关注
                                            </p>
                                        </div>
                                    </li>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="container text-right mb20 hidden-xs">
            <a href="https://segmentfault.com/feeds" class="feed-link">
                订阅本页 RSS
            </a>
        </div>
        